package com.itcast.springDemo.service.impl;


import com.itcast.springDemo.dao.OrderDao;
import com.itcast.springDemo.service.OrderService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class OrderServiceImpl implements OrderService {
    @Autowired
    private OrderDao orderDao;
    @Override
    public String updateOrder() throws Exception {
        System.out.println("接收控制层传输过来的封装数据");
        System.out.println("将数据交给dao层处理");
        String result = orderDao.updateOrder();
        System.out.println("将结果返回给控制层");
        return result;
    }
}
